﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ListComments.aspx.cs" Inherits="NhanAi.Admin.ListComments" %>
<%@ Register Src="~/Admin/PagingBar.ascx" TagName="PagingBar" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Bình luận <%=Request["approved"]=="yes"?"đã duyệt":"chưa duyệt" %></h3>
     <form id="form" action="ListCPosts.aspx" method="post">
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
            <tr>
                <th class="table-header-check">
                    <input type="checkbox" id="check-all" />
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Tác giả</a>
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Email</a>
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Ngày đăng</a>
                </th>              
                
                 
                <th class="table-header-options line-left"></th>
            </tr>

            <asp:Repeater ID="rptData" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <input type="checkbox" id='ids<%#Eval("Id")%>' value="<%#Eval("Id")%>" name="ids" />
                        </td>

                        <td>
                            <%# Eval("Author") %>
                        </td>
                         <td>
                            <%# Eval("AuthorEmail") %>
                        </td>
                        <td>
                            <%# Eval("CommentDate","{0:dd/MM/yyyy hh:mm:ss tt}")%>
                        </td>                       
                      
                        <td>
                            <a href="/Admin/EditComment.aspx?id=<%#Eval("Id") %>">Chỉnh sửa</a>

                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>

        </table>
    </form>
    <uc2:PagingBar ID="paging" runat="server"></uc2:PagingBar>
</asp:Content>
